private static final class DefaultServerResponseBuilder.BodyInserterServerResponse<T> extends DefaultServerResponseBuilder.AbstractServerResponse
ServerResponse.BodyBuilder, ServerResponse.Context, ServerResponse.HeadersBuilder<B extends ServerResponse.HeadersBuilder<B>>
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
hints |
private BodyInserter<T,? super ServerHttpResponse> |
inserter |
Constructor and Description |
---|
BodyInserterServerResponse(HttpStatus statusCode,
HttpHeaders headers,
BodyInserter<T,? super ServerHttpResponse> inserter,
java.util.Map<java.lang.String,java.lang.Object> hints) |
Modifier and Type | Method and Description |
---|---|
<any> |
writeTo(ServerWebExchange exchange,
ServerResponse.Context context)
Write this response to the given web exchange.
|
headers, statusCode, writeStatusAndHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accepted, badRequest, created, from, noContent, notFound, ok, permanentRedirect, seeOther, status, temporaryRedirect, unprocessableEntity
private final BodyInserter<T,? super ServerHttpResponse> inserter
private final java.util.Map<java.lang.String,java.lang.Object> hints
public BodyInserterServerResponse(HttpStatus statusCode, HttpHeaders headers, BodyInserter<T,? super ServerHttpResponse> inserter, java.util.Map<java.lang.String,java.lang.Object> hints)
public <any> writeTo(ServerWebExchange exchange, ServerResponse.Context context)
ServerResponse
exchange
- the web exchange to write tocontext
- the context to use when writingMono<Void>
to indicate when writing is complete